package cn.group.hotel2.service;

import cn.group.hotel2.pojo.dto.FinanceGetCountDTO;
import cn.group.hotel2.pojo.dto.FinancePriceDTO;
import cn.group.hotel2.pojo.dto.FinanceSelectDTO;
import cn.group.hotel2.pojo.vo.FinanceListItemVO;
import org.springframework.transaction.annotation.Transactional;

import java.text.ParseException;
import java.util.List;

/**
 * @author : zlh
 * @date : 2022-11-26 10:04
 **/
@Transactional(rollbackFor = Exception.class)

public interface IFinanceService {
    /**
     * 查询财务列表
     * @return
     */
    List<FinanceListItemVO> list (FinanceSelectDTO financeSelectDTO) throws ParseException;

    /**
     * 查询财务总收入
     * @return
     */
    Double selectSumPrice(FinancePriceDTO financePriceDTO) throws ParseException;

    /**
     * 查询财务订单的数量
     * @return
     */
    Integer getCount(FinanceGetCountDTO financeGetCountDTO) throws ParseException;
}
